#ifndef SYSHELPER_HPP
#define SYSHELPER_HPP

//#include <QCoreApplication>
#include <QSysInfo>
#include <QDebug>

int getSysType()
{
    QString systemType;

    if (QSysInfo::productType() == "windows") {
        systemType = "Windows";
        qDebug() << "Current system type:" << systemType;
        return 1;
    } else if (QSysInfo::productType() == "linux") {
        systemType = "Linux";
        qDebug() << "Current system type:" << systemType;
        return 0;
    } else {
        systemType = "Other";
        qDebug() << "Current system type:" << systemType;
        return -1;
    }



    //return app.exec();
}

#endif // SYSHELPER_HPP
